package com.ruoyi.project.system.activitytype.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 问答区
 *
 * @autor LCL
 * @date - 2020/8/24
 */
public class ActivityType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 案例标题 */
    @Excel(name = "问题")
    private String qname;

    /** 简介 */
    @Excel(name = "回答简介")
    private String object;

    /** 详情 */
    private String details;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date created;

    /** 是否展示 0：否 1：是 */
    @Excel(name = "是否展示 0：否 1：是")
    private Integer isShow;

    /** 排序 正序 */
    @Excel(name = "排序 正序")
    private Integer sort;


    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

    public String getQname() {
        return qname;
    }
    public void setQname(String qname) {
        this.qname = qname;
    }

    public String getObject() {
        return object;
    }
    public void setObject(String object) {
        this.object = object;
    }

    public String getDetails() {
        return details;
    }
    public void setDetails(String details) {
        this.details = details;
    }

    public Date getCreated() {
        return created;
    }
    public void setCreated(Date created) {
        this.created = created;
    }

    public Integer getIsShow() {
        return isShow;
    }
    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getSort() {
        return sort;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("qname", getQname())
                .append("object", getObject())
                .append("created", getCreated())
                .append("details", getCreated())
                .append("isShow", getIsShow())
                .append("sort", getSort())
                .toString();
    }
}
